//package com.xiguaji.tiktok.task.hashtag;
//
//
//import com.gugee.tiktok.common.model.dto.Aweme4HashtagDto;
//import com.gugee.tiktok.data.common.msg.HashtagMessage;
//import com.gugee.tiktok.data.common.msg.MusicMessage;
//import com.xiguaji.tiktok.task.music.Music;
//import org.springframework.data.jdbc.repository.query.Query;
//import org.springframework.data.repository.CrudRepository;
//
//import java.util.List;
//import java.util.Map;
//import java.util.Optional;
//
//public interface HashtagRepository extends CrudRepository<Hashtag,Long> {
//
//    Optional<Hashtag> findByHid(long hid);
//
//    @Query("SELECT id,hid FROM hashtag  order by id  limit :start,:records")
//    List<HashtagMessage> getHashtagsByPages(long start, long records);
//
//    @Query("SELECT o_text_extra  FROM aweme order by score desc LIMIT  :start,:records")
//    List<Aweme4HashtagDto> getHashtagsTopOrderByScore(long start, long records);
//}
